class CreateFollowHotPostSettings < ActiveRecord::Migration
  def self.up
    create_table :follow_hot_post_settings do |t|
      t.integer :hot_post_id,
        :user_id,
        :tool_id,
        :hot_post_id,
        :read_lz_sub_hot_post_id,
        :read_no_lz_sub_hot_post_id,
        :read_sub_hot_post_id
      t.string :scope, :default => 'all'          
      t.integer :read_lz_sub_hot_posts_count, :default => 0
      t.integer :read_no_lz_sub_hot_posts_count, :default => 0
      t.string :lz_show_status, :default => 'low_light'
      t.integer :report_hour, :default => 19
      t.string :allow_sms, :default => 'yes'
      t.string :allow_email, :default => 'yes'
      t.string :status, :default => 'zhui'
      t.timestamps :read_at,
        :smed_at,
        :emailed_at
      
      t.timestamps
    end
  end

  def self.down
    drop_table :follow_hot_post_settings
  end
end
